export const state = () => ({
  authenticated: false,
  token: null
})

export const mutations = {
  login (state, token) {
    state.token = token
    state.authenticated = true
  },
  logout (state) {
    state.token = null
    state.authenticated = false
  }
}
